package cn.com.byte1024.service.impl;

import cn.com.byte1024.entity.User;
import cn.com.byte1024.mapper.UserMapper;
import cn.com.byte1024.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ProjectName: VoteSystem
 * @ClassName: UserServiceImpl
 * @Description:
 * @Author: Kwnda
 * @Date: 2021/1/4 2:13
 */
@Service
public class UserServiceImpl implements UserService {
    
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByUser(User user) {
        return userMapper.selectByUser(user);
    }

    @Override
    public User selectByLoginName(String phone) {
        return userMapper.selectByLoginName(phone);
    }

    @Override
    public int saveUser(User user) {
        return userMapper.saveUser(user);
    }
}
